package com.finley.flowabledemo.design.state;


import cn.hutool.core.util.StrUtil;

/**
 * @description:
 * @author: xianfei.chao
 * @date 2025/5/31 10:18
 * @version: 1.0
 */
public class FinishWorkState extends IWorkState{
    /**
     * 写程序
     *
     * @param workContext 工作上下文
     */
    @Override
    void writeProgram(WorkContext workContext) {
        System.out.println(StrUtil.format(FORMAT_PRE + getDescription(), workContext.getHours()));
    }

    @Override
    String getDescription() {
        return "下班回家了!";
    }
}
